﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>
<link href="@Url.Content("~/content/table_btn.css")" rel="stylesheet" type="text/css"/>

<!--[if lte IE 8]>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
<![endif]-->

<noscript>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
    <link href="@Url.Content("~/content/activitie_noscript.css")" rel="stylesheet" type="text/css"/>
</noscript>

@model PessMvc.Models.ActivityProgressModel

@{
    ViewBag.Title = "Progress";
}

<h2>评分进度</h2>
<div id="operate">
    @Html.ActionLink("返回", "Details", new { id=Model.ActivityID})
</div>

@{var aRate=decimal.Parse(Model.ArchiveGradedTotal.ToString())/decimal.Parse(Model.ArchiveTotal.ToString());}
<h3 class="showTxt">总进度：@Model.ArchiveGradedTotal（已评）/@Model.ArchiveTotal（总数）, @(string.Format("{0:0.#}%", aRate*100))</h3>
<table class="oddTable showProgress">
    <tr>
        <th>学科</th>
        <th>档案数</th>
        <th>已评分档案数</th>
        <th>完成率</th>
    </tr>
    @foreach (var m in Model.SubjectProgressList)
    {
        <tr>
            <td>@m.SubjectName</td>
            <td>@m.ArchiveTotal</td>
            <td>@m.ArchiveGradedCount</td>
            <td>@{decimal rate = decimal.Parse((m.ArchiveGradedCount == null ? 0 : m.ArchiveGradedCount).ToString()) / decimal.Parse((m.ArchiveTotal == null ? 0 : m.ArchiveTotal).ToString());}
                @(string.Format("{0:0.#}%", rate*100))
            </td>
        </tr>
    }
</table>

